#include "lowpassfilter_cofficient.h"

lowpassfilter_pDelayLinkList lowpassfilter_pDelay[8];     // 用于存储每个通道过去时刻滤波后的结果
bool LowPassFilterStatus = false;                          // FIR带通滤波状态标志
uint16_t FIR_Lowpassfilter_FilterLength = 867;             // FIR带通滤波器阶数
double   FIR_Lowpassfilter_Coefficient[867] =              // FIR带通滤波器权重系数
{
    -5.160567704564e-07,-1.620550073866e-06,-2.256134993074e-06,-2.100997817982e-06,
    -1.103020435572e-06,4.620606684018e-07,2.056829437105e-06,3.061787875166e-06,
    3.010307980353e-06,1.791685082471e-06,-2.623704395229e-07,-2.455650078782e-06,
    -3.957635077424e-06,-4.112160796082e-06,-2.711806889786e-06,-1.268078070828e-07,
    2.777176789967e-06,4.922122335477e-06,5.411729883865e-06,3.894596631714e-06,
    7.527413739789e-07,-2.974206819394e-06,-5.924899210351e-06,-6.907022967063e-06,
    -5.368320822779e-06,-1.665164954676e-06,2.992340946542e-06,6.926069905848e-06,
    8.587448840743e-06,7.156669365166e-06,2.915018283641e-06,-2.770419916744e-06,
    -7.875625485842e-06,-1.043241589288e-05,-9.276989994138e-06,-4.552928449669e-06,
    2.241251699152e-06,8.713101064753e-06,1.241000898989e-05,1.173842322959e-05,
    6.627445373875e-06,-1.332649804073e-06,-9.367500474906e-06,-1.447579507472e-05,
    -1.453997853731e-05,-9.183047024891e-06,-3.120344772603e-08,9.757528549684e-06,
    1.657181034206e-05,1.766859901173e-05,1.225793940797e-05,1.928062203834e-06,
    -9.79216744726e-06,-1.862578318758e-05,-2.109726789761e-05,-1.588168502752e-05,
    -4.435592743143e-06,9.371628355039e-06,2.055064713446e-05,2.478321545602e-05,
    2.007270216915e-05,7.629030499149e-06,-8.388703473314e-06,-2.224439650208e-05,
    -2.86662888383e-05,-2.483568574641e-05,-1.157853919265e-05,6.730535429359e-06,
    2.359033461036e-05,3.266755056188e-05,3.015900836636e-05,1.634630302686e-05,
    -4.28081230989e-06,-2.445775975358e-05,-3.668817270101e-05,-3.60121674388e-05,
    -2.198339330484e-05,9.223864491604e-07,2.470312801277e-05,4.060869385399e-05,
    4.234335033935e-05,2.852646118817e-05,3.459695861647e-06,-2.41717242284e-05,
    -4.42887041972e-05,-4.90771945955e-05,-3.599431835909e-05,-8.974778267759e-06,
    2.269986319192e-05,4.756702038887e-05,5.611282357253e-05,4.438447679644e-05,
    1.572282854274e-05,-2.011763244475e-05,-5.026240668517e-05,-6.332223998599e-05,
    -5.366972744433e-05,-2.37903721637e-05,1.625217614993e-05,5.217489136551e-05,
    7.054915958302e-05,6.379484495923e-05,3.324618667049e-05,-1.093150652197e-05,
    -5.308771846494e-05,-7.760836537123e-05,-7.467351169417e-05,-4.413683014519e-05,
    3.988815498955e-06, 5.27699639608e-05,8.428565872816e-05,8.618555836164e-05,
    5.648208838341e-05,4.732755007178e-06,-5.097983308977e-05,-9.033847753683e-05,
    -9.817462117965e-05,-7.027043554013e-05,-1.537494053718e-05,4.746864155877e-05,
    9.549724315379e-05,0.0001104463155495,8.545461189925e-05,2.805884994411e-05,
    -4.198546828825e-05,-9.94674875688e-05,-0.0001227670242801,-0.0001019474296302,
    -4.287921450236e-05, 3.42824512596e-05,0.0001019327996559, 0.000134863393946,
    0.0001196179226673,5.989848833752e-05,-2.412068134545e-05,-0.0001025586150988,
    -0.000146422626088,-0.000138287959921,-7.914091033156e-05, 1.12766320295e-05,
    0.0001009968586052,0.0001570936406181, 0.000157729441679,0.0001005866482044,
    4.450953949874e-06,-9.689142966898e-05,-0.0001664891770397,-0.0001776621971036,
    -0.0001241661541365,-2.323381637023e-05,8.988450470456e-05,0.0001741888850433,
    0.0001977526960542,0.0001497548677492,4.520667850849e-05,-7.962360922347e-05,
    -0.0001797434398631,-0.0002176136809846,-0.0001771684062091,-7.04596222657e-05,
     6.57693942466e-05,0.0001826796997294,0.0002368048143839,0.0002061583824169,
    9.903047475013e-05,-4.800403177316e-05,-0.0001825069031033,-0.000254834424203,
    -0.0002364089904748,-0.0001308973538849,2.604012531681e-05,0.0001787238825077,
    0.0002711624140594, 0.000267534492757,0.0001659715283445,3.699862610676e-07,
    -0.0001708272500583,-0.0002852043869463,-0.0002990777348476,-0.0002040907520169,
    -3.142466966669e-05,0.0001583204877147,0.0002963370109387,0.0003305098033494,
    0.0002450132349332,6.726333517954e-05,-0.0001407238532864,-0.0003039046333373,
    -0.0003612309271522,-0.0002884124109786,-0.0001079568359526,0.0001175849918723,
    0.0003072271261961,0.0003905727053246,0.0003338726574966,0.0001534981018041,
    -8.849012220734e-05,-0.0003056089217036,-0.0004178017245501,-0.0003808861130221,
    -0.0002037931864211,5.307564889224e-05,0.0002983491709262,0.0004421246062518,
    0.0004288507267753,0.0002586529089973,-1.104003522895e-05, -0.00028475293452,
    -0.000462694498587,-0.0004770696572448,-0.0003177852694869,-3.784424207986e-05,
    0.0002641432897477,0.0004786190017536,0.0005247521172845,0.0003807888106443,
    9.371884527471e-05,-0.0002358742151065,-0.0004889694870085,-0.0005710157398167,
    -0.000447147089615,-0.0001566280302025,0.0001993440926988,0.0004927917409756,
    0.0006148905117169,0.0005162244069389,0.0002265076006928,-0.0001540096497698,
    -0.0004891178377787,-0.0006553242940396,-0.0005872629213334,-0.0003031745574826,
    9.940014523848e-05,0.0004769791128654, 0.000691189914797,0.0006593812545239,
    0.0003863176289023,-3.513159514088e-05,-0.0004554200847043,-0.0007212937863921,
    -0.0007315746617015,-0.0004754888575019,-3.907917668766e-05,0.0004235131444517,
    0.0007443859639499, 0.000802716809959,0.0005700963980101,0.0001234008790888,
    -0.0003803738097971,-0.0007591715235862,-0.0008715631693285,-0.0006693986571664,
    -0.000217874698884,0.0003251763181084,0.0007643231014659, 0.000936755978831,
    0.0007724998746927,0.0003224020559389,-0.0002571693162301,-0.0007584943956496,
    -0.0009968307031932,-0.0008783472065754,-0.0004367333576037,0.0001756913903661,
    0.0007403343933954, 0.001050223844378,0.0009857293263851,0.0005604579196198,
    -8.018616981396e-05,-0.0007085020468069, -0.00109528191539,-0.001093276506841,
    -0.0006929951901319,-2.978326670726e-05,0.0006616810792869, 0.001130271321209,
     0.001199462081191,0.0008335873742016,0.0001545209535198,-0.000598594563624,
     -0.00115338882185,-0.001302605110702,-0.0009812935070251,-0.000294185835648,
    0.0005180188686753, 0.001162772173584, 0.001400873998386, 0.001134984963358,
    0.0004487810579365,-0.0004187965238336, -0.00115651045304,-0.001492290686699,
    -0.001293342316222,-0.0006181449865712,0.0002998474961523, 0.001132653460953,
     0.001574734953535, 0.001454853366629,0.0008019441836029,-0.0001601783102013,
    -0.001089219470688,-0.001645948169058,-0.001617812053114,-0.000999668529921,
    -1.111640439397e-06, 0.001024200421616, 0.001703535685337, 0.001780317808442,
     0.001210628662514,0.0001848273473285,-0.0009355634439607,-0.001744966785436,
    -0.001940274750633,-0.001433955858215,-0.000391679908301,0.0008212473179675,
     0.001767570795137, 0.002095389860966, 0.001668604458988, 0.000622293818025,
    -0.0006791520831095,-0.001768527523257,-0.002243168989394,-0.001913356893822,
    -0.0008772212173849,0.0005071194723601, 0.001744849591389, 0.002380909101774,
     0.002166831310095,   0.0011569649081,-0.0003029010752354,-0.001693353357083,
    -0.002505684587256,-0.002427491783652,-0.001462012554573,6.411001062732e-05,
     0.001610613894195, 0.002614324589343,  0.00269366103259, 0.001792885417668,
    0.0002118497756882,-0.001492897659531,-0.002703377067465,  -0.0029635355157,
    -0.002150206370293,-0.0005278849958886, 0.001336063701444, 0.002769053402362,
     0.003235202753481, 0.002534794122123,0.0008873575911716,-0.001135419977781,
    -0.002807144433136,-0.003506660668535,-0.002947794021716,-0.001294290849953,
    0.0008855145599537, 0.002812894174738, 0.003775838703711, 0.003390861364442,
     0.001753665503161,-0.0005798304647973, -0.00278080990202, -0.00404062044142,
    -0.003866422351065, -0.00227185081444,0.0002103344040336, 0.002704374581139,
     0.004298867416806, 0.004378053572216, 0.002857244146324,0.0002332021137472,
    -0.002575605561097, -0.00454844379158,-0.004931048658537,-0.003521243062812,
    -0.0007642479141112, 0.002384363642327, 0.004787241534842,  0.00553329167729,
     0.004279767591316, 0.001401168495356,-0.002117241728945,-0.005013205742707,
    -0.006196654621224, -0.00515573158915,-0.002169946832193, 0.001755714071566,
     0.005224359720192, 0.006939334130617, 0.006183233288816, 0.003108853386924,
    -0.001272916233276, -0.00541882944703,-0.007789968653784,-0.007415045778749,
    -0.004276906386422,0.0006277264168705, 0.005594867053883, 0.008795367268651,
     0.008936904400272,  0.00577026462363, 0.000246896139353,-0.005750872946788,
     -0.01003620768204, -0.01089708398579,-0.007756831657762,-0.001469043129406,
     0.005885416235524,  0.01166232405868,  0.01357452956543,  0.01055803917304,
      0.00326890546591,-0.005997253145594, -0.01398367066429, -0.01756050172456,
     -0.01487493685349,-0.006164298330356, 0.006085343123331,  0.01775615123117,
      0.02435934854368,  0.02257947440463,  0.01161489739547,-0.006148862378693,
     -0.02542012749692, -0.03924207742251, -0.04089692311261, -0.02594764968062,
     0.006187214650069,  0.05162755867344,   0.1026353823453,   0.1493243366713,
       0.1820443612023,   0.1938012196602,   0.1820443612023,   0.1493243366713,
       0.1026353823453,  0.05162755867344, 0.006187214650069, -0.02594764968062,
     -0.04089692311261, -0.03924207742251, -0.02542012749692,-0.006148862378693,
      0.01161489739547,  0.02257947440463,  0.02435934854368,  0.01775615123117,
     0.006085343123331,-0.006164298330356, -0.01487493685349, -0.01756050172456,
     -0.01398367066429,-0.005997253145594,  0.00326890546591,  0.01055803917304,
      0.01357452956543,  0.01166232405868, 0.005885416235524,-0.001469043129406,
    -0.007756831657762, -0.01089708398579, -0.01003620768204,-0.005750872946788,
     0.000246896139353,  0.00577026462363, 0.008936904400272, 0.008795367268651,
     0.005594867053883,0.0006277264168705,-0.004276906386422,-0.007415045778749,
    -0.007789968653784, -0.00541882944703,-0.001272916233276, 0.003108853386924,
     0.006183233288816, 0.006939334130617, 0.005224359720192, 0.001755714071566,
    -0.002169946832193, -0.00515573158915,-0.006196654621224,-0.005013205742707,
    -0.002117241728945, 0.001401168495356, 0.004279767591316,  0.00553329167729,
     0.004787241534842, 0.002384363642327,-0.0007642479141112,-0.003521243062812,
    -0.004931048658537, -0.00454844379158,-0.002575605561097,0.0002332021137472,
     0.002857244146324, 0.004378053572216, 0.004298867416806, 0.002704374581139,
    0.0002103344040336, -0.00227185081444,-0.003866422351065, -0.00404062044142,
     -0.00278080990202,-0.0005798304647973, 0.001753665503161, 0.003390861364442,
     0.003775838703711, 0.002812894174738,0.0008855145599537,-0.001294290849953,
    -0.002947794021716,-0.003506660668535,-0.002807144433136,-0.001135419977781,
    0.0008873575911716, 0.002534794122123, 0.003235202753481, 0.002769053402362,
     0.001336063701444,-0.0005278849958886,-0.002150206370293,  -0.0029635355157,
    -0.002703377067465,-0.001492897659531,0.0002118497756882, 0.001792885417668,
      0.00269366103259, 0.002614324589343, 0.001610613894195,6.411001062732e-05,
    -0.001462012554573,-0.002427491783652,-0.002505684587256,-0.001693353357083,
    -0.0003029010752354,   0.0011569649081, 0.002166831310095, 0.002380909101774,
     0.001744849591389,0.0005071194723601,-0.0008772212173849,-0.001913356893822,
    -0.002243168989394,-0.001768527523257,-0.0006791520831095, 0.000622293818025,
     0.001668604458988, 0.002095389860966, 0.001767570795137,0.0008212473179675,
    -0.000391679908301,-0.001433955858215,-0.001940274750633,-0.001744966785436,
    -0.0009355634439607,0.0001848273473285, 0.001210628662514, 0.001780317808442,
     0.001703535685337, 0.001024200421616,-1.111640439397e-06,-0.000999668529921,
    -0.001617812053114,-0.001645948169058,-0.001089219470688,-0.0001601783102013,
    0.0008019441836029, 0.001454853366629, 0.001574734953535, 0.001132653460953,
    0.0002998474961523,-0.0006181449865712,-0.001293342316222,-0.001492290686699,
     -0.00115651045304,-0.0004187965238336,0.0004487810579365, 0.001134984963358,
     0.001400873998386, 0.001162772173584,0.0005180188686753,-0.000294185835648,
    -0.0009812935070251,-0.001302605110702, -0.00115338882185,-0.000598594563624,
    0.0001545209535198,0.0008335873742016, 0.001199462081191, 0.001130271321209,
    0.0006616810792869,-2.978326670726e-05,-0.0006929951901319,-0.001093276506841,
     -0.00109528191539,-0.0007085020468069,-8.018616981396e-05,0.0005604579196198,
    0.0009857293263851, 0.001050223844378,0.0007403343933954,0.0001756913903661,
    -0.0004367333576037,-0.0008783472065754,-0.0009968307031932,-0.0007584943956496,
    -0.0002571693162301,0.0003224020559389,0.0007724998746927, 0.000936755978831,
    0.0007643231014659,0.0003251763181084,-0.000217874698884,-0.0006693986571664,
    -0.0008715631693285,-0.0007591715235862,-0.0003803738097971,0.0001234008790888,
    0.0005700963980101, 0.000802716809959,0.0007443859639499,0.0004235131444517,
    -3.907917668766e-05,-0.0004754888575019,-0.0007315746617015,-0.0007212937863921,
    -0.0004554200847043,-3.513159514088e-05,0.0003863176289023,0.0006593812545239,
     0.000691189914797,0.0004769791128654,9.940014523848e-05,-0.0003031745574826,
    -0.0005872629213334,-0.0006553242940396,-0.0004891178377787,-0.0001540096497698,
    0.0002265076006928,0.0005162244069389,0.0006148905117169,0.0004927917409756,
    0.0001993440926988,-0.0001566280302025,-0.000447147089615,-0.0005710157398167,
    -0.0004889694870085,-0.0002358742151065,9.371884527471e-05,0.0003807888106443,
    0.0005247521172845,0.0004786190017536,0.0002641432897477,-3.784424207986e-05,
    -0.0003177852694869,-0.0004770696572448,-0.000462694498587, -0.00028475293452,
    -1.104003522895e-05,0.0002586529089973,0.0004288507267753,0.0004421246062518,
    0.0002983491709262,5.307564889224e-05,-0.0002037931864211,-0.0003808861130221,
    -0.0004178017245501,-0.0003056089217036,-8.849012220734e-05,0.0001534981018041,
    0.0003338726574966,0.0003905727053246,0.0003072271261961,0.0001175849918723,
    -0.0001079568359526,-0.0002884124109786,-0.0003612309271522,-0.0003039046333373,
    -0.0001407238532864,6.726333517954e-05,0.0002450132349332,0.0003305098033494,
    0.0002963370109387,0.0001583204877147,-3.142466966669e-05,-0.0002040907520169,
    -0.0002990777348476,-0.0002852043869463,-0.0001708272500583,3.699862610676e-07,
    0.0001659715283445, 0.000267534492757,0.0002711624140594,0.0001787238825077,
    2.604012531681e-05,-0.0001308973538849,-0.0002364089904748,-0.000254834424203,
    -0.0001825069031033,-4.800403177316e-05,9.903047475013e-05,0.0002061583824169,
    0.0002368048143839,0.0001826796997294, 6.57693942466e-05,-7.04596222657e-05,
    -0.0001771684062091,-0.0002176136809846,-0.0001797434398631,-7.962360922347e-05,
    4.520667850849e-05,0.0001497548677492,0.0001977526960542,0.0001741888850433,
    8.988450470456e-05,-2.323381637023e-05,-0.0001241661541365,-0.0001776621971036,
    -0.0001664891770397,-9.689142966898e-05,4.450953949874e-06,0.0001005866482044,
     0.000157729441679,0.0001570936406181,0.0001009968586052, 1.12766320295e-05,
    -7.914091033156e-05,-0.000138287959921,-0.000146422626088,-0.0001025586150988,
    -2.412068134545e-05,5.989848833752e-05,0.0001196179226673, 0.000134863393946,
    0.0001019327996559, 3.42824512596e-05,-4.287921450236e-05,-0.0001019474296302,
    -0.0001227670242801,-9.94674875688e-05,-4.198546828825e-05,2.805884994411e-05,
    8.545461189925e-05,0.0001104463155495,9.549724315379e-05,4.746864155877e-05,
    -1.537494053718e-05,-7.027043554013e-05,-9.817462117965e-05,-9.033847753683e-05,
    -5.097983308977e-05,4.732755007178e-06,5.648208838341e-05,8.618555836164e-05,
    8.428565872816e-05, 5.27699639608e-05,3.988815498955e-06,-4.413683014519e-05,
    -7.467351169417e-05,-7.760836537123e-05,-5.308771846494e-05,-1.093150652197e-05,
    3.324618667049e-05,6.379484495923e-05,7.054915958302e-05,5.217489136551e-05,
    1.625217614993e-05,-2.37903721637e-05,-5.366972744433e-05,-6.332223998599e-05,
    -5.026240668517e-05,-2.011763244475e-05,1.572282854274e-05,4.438447679644e-05,
    5.611282357253e-05,4.756702038887e-05,2.269986319192e-05,-8.974778267759e-06,
    -3.599431835909e-05,-4.90771945955e-05,-4.42887041972e-05,-2.41717242284e-05,
    3.459695861647e-06,2.852646118817e-05,4.234335033935e-05,4.060869385399e-05,
    2.470312801277e-05,9.223864491604e-07,-2.198339330484e-05,-3.60121674388e-05,
    -3.668817270101e-05,-2.445775975358e-05,-4.28081230989e-06,1.634630302686e-05,
    3.015900836636e-05,3.266755056188e-05,2.359033461036e-05,6.730535429359e-06,
    -1.157853919265e-05,-2.483568574641e-05,-2.86662888383e-05,-2.224439650208e-05,
    -8.388703473314e-06,7.629030499149e-06,2.007270216915e-05,2.478321545602e-05,
    2.055064713446e-05,9.371628355039e-06,-4.435592743143e-06,-1.588168502752e-05,
    -2.109726789761e-05,-1.862578318758e-05,-9.79216744726e-06,1.928062203834e-06,
    1.225793940797e-05,1.766859901173e-05,1.657181034206e-05,9.757528549684e-06,
    -3.120344772603e-08,-9.183047024891e-06,-1.453997853731e-05,-1.447579507472e-05,
    -9.367500474906e-06,-1.332649804073e-06,6.627445373875e-06,1.173842322959e-05,
    1.241000898989e-05,8.713101064753e-06,2.241251699152e-06,-4.552928449669e-06,
    -9.276989994138e-06,-1.043241589288e-05,-7.875625485842e-06,-2.770419916744e-06,
    2.915018283641e-06,7.156669365166e-06,8.587448840743e-06,6.926069905848e-06,
    2.992340946542e-06,-1.665164954676e-06,-5.368320822779e-06,-6.907022967063e-06,
    -5.924899210351e-06,-2.974206819394e-06,7.527413739789e-07,3.894596631714e-06,
    5.411729883865e-06,4.922122335477e-06,2.777176789967e-06,-1.268078070828e-07,
    -2.711806889786e-06,-4.112160796082e-06,-3.957635077424e-06,-2.455650078782e-06,
    -2.623704395229e-07,1.791685082471e-06,3.010307980353e-06,3.061787875166e-06,
    2.056829437105e-06,4.620606684018e-07,-1.103020435572e-06,-2.100997817982e-06,
    -2.256134993074e-06,-1.620550073866e-06,-5.160567704564e-07
};
